package cn.kgc.pojo.train;

import java.math.BigDecimal;

/**
 * 火车票的类
 */
public class Trainticket {
    private Short id;//车票编号

    private String tNo;//车次编号

    private String tSeatno;//座位号

    private BigDecimal tSeatprice;//车票价格

    private Short tSalestatus;//销售状态(1：已预定2：已出售3：已退票4：已售罄)

    private Short userid;//购票人编号

    public Short getId() {
        return id;
    }

    public void setId(Short id) {
        this.id = id;
    }

    public String gettNo() {
        return tNo;
    }

    public void settNo(String tNo) {
        this.tNo = tNo == null ? null : tNo.trim();
    }

    public String gettSeatno() {
        return tSeatno;
    }

    public void settSeatno(String tSeatno) {
        this.tSeatno = tSeatno == null ? null : tSeatno.trim();
    }

    public BigDecimal gettSeatprice() {
        return tSeatprice;
    }

    public void settSeatprice(BigDecimal tSeatprice) {
        this.tSeatprice = tSeatprice;
    }

    public Short gettSalestatus() {
        return tSalestatus;
    }

    public void settSalestatus(Short tSalestatus) {
        this.tSalestatus = tSalestatus;
    }

    public Short getUserid() {
        return userid;
    }

    public void setUserid(Short userid) {
        this.userid = userid;
    }
}